package net.onceface.core.domain.enums;

/**
 * 会员等级枚举
 * **/
public enum MemberLevel {

	Z("注册会员"),
	A("铜牌会员"),
	B("银牌会员"),
	C("金牌会员"),
	D("铂金会员"),
	E("砖石会员");
	
	private String label;
	
	private MemberLevel(String label) {
		this.label = label;
	}
	
	public String getLabel() {
		return label;
	}
	
	public static MemberLevel getByLabel(String label) {
		for (MemberLevel each : MemberLevel.values()) {
			if (each.getLabel().equals(label)) {
				return each;
			}
		}
		return null;
	}
	
}
